3.356 \(\int \frac {a+a \sec (c+d x)}{\cos ^{\frac {3}{2}}(c+d x)} \, dx\)

Optimal. Leaf size=83 \[ \frac {2 a F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{3 d}-\frac {2 a E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d}+\frac {2 a \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x)}+\frac {2 a \sin (c+d x)}{d \sqrt {\cos (c+d x)}} \]

[Out]

-2*a*(cos(1/2*d*x+1/2*c)^2)^(1/2)/cos(1/2*d*x+1/2*c)*EllipticE(sin(1/2*d*x+1/2*c),2^(1/2))/d+2/3*a*(cos(1/2*d*
x+1/2*c)^2)^(1/2)/cos(1/2*d*x+1/2*c)*EllipticF(sin(1/2*d*x+1/2*c),2^(1/2))/d+2/3*a*sin(d*x+c)/d/cos(d*x+c)^(3/
2)+2*a*sin(d*x+c)/d/cos(d*x+c)^(1/2)

________________________________________________________________________________________

Rubi [A]  time = 0.08, antiderivative size = 83, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.238, Rules used = {4225, 2748, 2636, 2641, 2639} \[ \frac {2 a F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{3 d}-\frac {2 a E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d}+\frac {2 a \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x)}+\frac {2 a \sin (c+d x)}{d \sqrt {\cos (c+d x)}} \]

Antiderivative was successfully verified.

[In]

Int[(a + a*Sec[c + d*x])/Cos[c + d*x]^(3/2),x]

[Out]

(-2*a*EllipticE[(c + d*x)/2, 2])/d + (2*a*EllipticF[(c + d*x)/2, 2])/(3*d) + (2*a*Sin[c + d*x])/(3*d*Cos[c + d
*x]^(3/2)) + (2*a*Sin[c + d*x])/(d*Sqrt[Cos[c + d*x]])

Rule 2636

Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[(Cos[c + d*x]*(b*Sin[c + d*x])^(n + 1))/(b*d*(n +
1)), x] + Dist[(n + 2)/(b^2*(n + 1)), Int[(b*Sin[c + d*x])^(n + 2), x], x] /; FreeQ[{b, c, d}, x] && LtQ[n, -1
] && IntegerQ[2*n]

Rule 2639

Int[Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2*EllipticE[(1*(c - Pi/2 + d*x))/2, 2])/d, x] /; FreeQ[{
c, d}, x]

Rule 2641

Int[1/Sqrt[sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2*EllipticF[(1*(c - Pi/2 + d*x))/2, 2])/d, x] /; FreeQ
[{c, d}, x]

Rule 2748

Int[((b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> Dist[c, Int[(b*S
in[e + f*x])^m, x], x] + Dist[d/b, Int[(b*Sin[e + f*x])^(m + 1), x], x] /; FreeQ[{b, c, d, e, f, m}, x]

Rule 4225

Int[(csc[(a_.) + (b_.)*(x_)]*(B_.) + (A_))*(u_), x_Symbol] :> Int[(ActivateTrig[u]*(B + A*Sin[a + b*x]))/Sin[a
 + b*x], x] /; FreeQ[{a, b, A, B}, x] && KnownSineIntegrandQ[u, x]

Rubi steps

\begin {align*} \int \frac {a+a \sec (c+d x)}{\cos ^{\frac {3}{2}}(c+d x)} \, dx &=\int \frac {a+a \cos (c+d x)}{\cos ^{\frac {5}{2}}(c+d x)} \, dx\\ &=a \int \frac {1}{\cos ^{\frac {5}{2}}(c+d x)} \, dx+a \int \frac {1}{\cos ^{\frac {3}{2}}(c+d x)} \, dx\\ &=\frac {2 a \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x)}+\frac {2 a \sin (c+d x)}{d \sqrt {\cos (c+d x)}}+\frac {1}{3} a \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx-a \int \sqrt {\cos (c+d x)} \, dx\\ &=-\frac {2 a E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d}+\frac {2 a F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{3 d}+\frac {2 a \sin (c+d x)}{3 d \cos ^{\frac {3}{2}}(c+d x)}+\frac {2 a \sin (c+d x)}{d \sqrt {\cos (c+d x)}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [C]  time = 6.13, size = 444, normalized size = 5.35 \[ a \left (\frac {\csc (c) (\cos (c+d x)+1) \sec ^2\left (\frac {c}{2}+\frac {d x}{2}\right ) \left (\frac {\tan (c) \sin \left (\tan ^{-1}(\tan (c))+d x\right ) \, _2F_1\left (-\frac {1}{2},-\frac {1}{4};\frac {3}{4};\cos ^2\left (d x+\tan ^{-1}(\tan (c))\right )\right )}{\sqrt {\tan ^2(c)+1} \sqrt {1-\cos \left (\tan ^{-1}(\tan (c))+d x\right )} \sqrt {\cos \left (\tan ^{-1}(\tan (c))+d x\right )+1} \sqrt {\cos (c) \sqrt {\tan ^2(c)+1} \cos \left (\tan ^{-1}(\tan (c))+d x\right )}}-\frac {\frac {\tan (c) \sin \left (\tan ^{-1}(\tan (c))+d x\right )}{\sqrt {\tan ^2(c)+1}}+\frac {2 \cos ^2(c) \sqrt {\tan ^2(c)+1} \cos \left (\tan ^{-1}(\tan (c))+d x\right )}{\sin ^2(c)+\cos ^2(c)}}{\sqrt {\cos (c) \sqrt {\tan ^2(c)+1} \cos \left (\tan ^{-1}(\tan (c))+d x\right )}}\right )}{2 d}-\frac {\csc (c) (\cos (c+d x)+1) \sec ^2\left (\frac {c}{2}+\frac {d x}{2}\right ) \sqrt {1-\sin \left (d x-\tan ^{-1}(\cot (c))\right )} \sqrt {\sin (c) \left (-\sqrt {\cot ^2(c)+1}\right ) \sin \left (d x-\tan ^{-1}(\cot (c))\right )} \sqrt {\sin \left (d x-\tan ^{-1}(\cot (c))\right )+1} \sec \left (d x-\tan ^{-1}(\cot (c))\right ) \, _2F_1\left (\frac {1}{4},\frac {1}{2};\frac {5}{4};\sin ^2\left (d x-\tan ^{-1}(\cot (c))\right )\right )}{3 d \sqrt {\cot ^2(c)+1}}+\sqrt {\cos (c+d x)} (\cos (c+d x)+1) \sec ^2\left (\frac {c}{2}+\frac {d x}{2}\right ) \left (\frac {\sec (c) \sin (d x) \sec ^2(c+d x)}{3 d}+\frac {\sec (c) (\sin (c)+3 \sin (d x)) \sec (c+d x)}{3 d}+\frac {\csc (c) \sec (c)}{d}\right )\right ) \]

Warning: Unable to verify antiderivative.

[In]

Integrate[(a + a*Sec[c + d*x])/Cos[c + d*x]^(3/2),x]

[Out]

a*(Sqrt[Cos[c + d*x]]*(1 + Cos[c + d*x])*Sec[c/2 + (d*x)/2]^2*((Csc[c]*Sec[c])/d + (Sec[c]*Sec[c + d*x]^2*Sin[
d*x])/(3*d) + (Sec[c]*Sec[c + d*x]*(Sin[c] + 3*Sin[d*x]))/(3*d)) - ((1 + Cos[c + d*x])*Csc[c]*HypergeometricPF
Q[{1/4, 1/2}, {5/4}, Sin[d*x - ArcTan[Cot[c]]]^2]*Sec[c/2 + (d*x)/2]^2*Sec[d*x - ArcTan[Cot[c]]]*Sqrt[1 - Sin[
d*x - ArcTan[Cot[c]]]]*Sqrt[-(Sqrt[1 + Cot[c]^2]*Sin[c]*Sin[d*x - ArcTan[Cot[c]]])]*Sqrt[1 + Sin[d*x - ArcTan[
Cot[c]]]])/(3*d*Sqrt[1 + Cot[c]^2]) + ((1 + Cos[c + d*x])*Csc[c]*Sec[c/2 + (d*x)/2]^2*((HypergeometricPFQ[{-1/
2, -1/4}, {3/4}, Cos[d*x + ArcTan[Tan[c]]]^2]*Sin[d*x + ArcTan[Tan[c]]]*Tan[c])/(Sqrt[1 - Cos[d*x + ArcTan[Tan
[c]]]]*Sqrt[1 + Cos[d*x + ArcTan[Tan[c]]]]*Sqrt[Cos[c]*Cos[d*x + ArcTan[Tan[c]]]*Sqrt[1 + Tan[c]^2]]*Sqrt[1 +
Tan[c]^2]) - ((Sin[d*x + ArcTan[Tan[c]]]*Tan[c])/Sqrt[1 + Tan[c]^2] + (2*Cos[c]^2*Cos[d*x + ArcTan[Tan[c]]]*Sq
rt[1 + Tan[c]^2])/(Cos[c]^2 + Sin[c]^2))/Sqrt[Cos[c]*Cos[d*x + ArcTan[Tan[c]]]*Sqrt[1 + Tan[c]^2]]))/(2*d))

________________________________________________________________________________________

fricas [F]  time = 0.51, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {a \sec \left (d x + c\right ) + a}{\cos \left (d x + c\right )^{\frac {3}{2}}}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sec(d*x+c))/cos(d*x+c)^(3/2),x, algorithm="fricas")

[Out]

integral((a*sec(d*x + c) + a)/cos(d*x + c)^(3/2), x)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {a \sec \left (d x + c\right ) + a}{\cos \left (d x + c\right )^{\frac {3}{2}}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sec(d*x+c))/cos(d*x+c)^(3/2),x, algorithm="giac")

[Out]

integrate((a*sec(d*x + c) + a)/cos(d*x + c)^(3/2), x)

________________________________________________________________________________________

maple [B]  time = 5.69, size = 369, normalized size = 4.45 \[ \frac {2 a \sqrt {-\left (-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (2 \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+6 \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-12 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right )-\sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-3 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )+8 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}}{3 \left (4 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-4 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{3} \sqrt {2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+a*sec(d*x+c))/cos(d*x+c)^(3/2),x)

[Out]

2/3*a*(-(-2*cos(1/2*d*x+1/2*c)^2+1)*sin(1/2*d*x+1/2*c)^2)^(1/2)/(4*sin(1/2*d*x+1/2*c)^4-4*sin(1/2*d*x+1/2*c)^2
+1)/sin(1/2*d*x+1/2*c)^3*(2*EllipticF(cos(1/2*d*x+1/2*c),2^(1/2))*(sin(1/2*d*x+1/2*c)^2)^(1/2)*(2*sin(1/2*d*x+
1/2*c)^2-1)^(1/2)*sin(1/2*d*x+1/2*c)^2+6*EllipticE(cos(1/2*d*x+1/2*c),2^(1/2))*(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2
)*(sin(1/2*d*x+1/2*c)^2)^(1/2)*sin(1/2*d*x+1/2*c)^2-12*sin(1/2*d*x+1/2*c)^4*cos(1/2*d*x+1/2*c)-(sin(1/2*d*x+1/
2*c)^2)^(1/2)*(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2)*EllipticF(cos(1/2*d*x+1/2*c),2^(1/2))-3*(sin(1/2*d*x+1/2*c)^2)^
(1/2)*(2*sin(1/2*d*x+1/2*c)^2-1)^(1/2)*EllipticE(cos(1/2*d*x+1/2*c),2^(1/2))+8*sin(1/2*d*x+1/2*c)^2*cos(1/2*d*
x+1/2*c))*(-2*sin(1/2*d*x+1/2*c)^4+sin(1/2*d*x+1/2*c)^2)^(1/2)/(2*cos(1/2*d*x+1/2*c)^2-1)^(1/2)/d

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {a \sec \left (d x + c\right ) + a}{\cos \left (d x + c\right )^{\frac {3}{2}}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sec(d*x+c))/cos(d*x+c)^(3/2),x, algorithm="maxima")

[Out]

integrate((a*sec(d*x + c) + a)/cos(d*x + c)^(3/2), x)

________________________________________________________________________________________

mupad [B]  time = 1.17, size = 87, normalized size = 1.05 \[ \frac {2\,a\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (-\frac {1}{4},\frac {1}{2};\ \frac {3}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{d\,\sqrt {\cos \left (c+d\,x\right )}\,\sqrt {{\sin \left (c+d\,x\right )}^2}}+\frac {2\,a\,\sin \left (c+d\,x\right )\,{{}}_2{\mathrm {F}}_1\left (-\frac {3}{4},\frac {1}{2};\ \frac {1}{4};\ {\cos \left (c+d\,x\right )}^2\right )}{3\,d\,{\cos \left (c+d\,x\right )}^{3/2}\,\sqrt {{\sin \left (c+d\,x\right )}^2}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + a/cos(c + d*x))/cos(c + d*x)^(3/2),x)

[Out]

(2*a*sin(c + d*x)*hypergeom([-1/4, 1/2], 3/4, cos(c + d*x)^2))/(d*cos(c + d*x)^(1/2)*(sin(c + d*x)^2)^(1/2)) +
 (2*a*sin(c + d*x)*hypergeom([-3/4, 1/2], 1/4, cos(c + d*x)^2))/(3*d*cos(c + d*x)^(3/2)*(sin(c + d*x)^2)^(1/2)
)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ a \left (\int \frac {\sec {\left (c + d x \right )}}{\cos ^{\frac {3}{2}}{\left (c + d x \right )}}\, dx + \int \frac {1}{\cos ^{\frac {3}{2}}{\left (c + d x \right )}}\, dx\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sec(d*x+c))/cos(d*x+c)**(3/2),x)

[Out]

a*(Integral(sec(c + d*x)/cos(c + d*x)**(3/2), x) + Integral(cos(c + d*x)**(-3/2), x))

________________________________________________________________________________________